package kz.pompei.OneGwt.ifaces.util;

public class Transpazon<T> {
  
  private Transpazon<T> source;
  
  private Getter<T> getter;
  
  public T get() {
    if (source != null) return source.get();
    if (getter != null) return getter.get();
    return null;
  }
  
  public void setSource(Transpazon<T> source) {
    this.source = source;
  }
  
  public void setGetter(Getter<T> getter) {
    this.getter = getter;
  }
}
